package com.ruoyi.app.controller;

import com.ruoyi.app.domain.ExamPackage;
import com.ruoyi.app.service.ExamPackageService;
import com.ruoyi.app.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("package")
@RestController
public class PackageController {
    @Autowired
    ExamPackageService examPackageService;

    @RequestMapping("list")
    public Result list() {
        List<ExamPackage> examPackages = examPackageService.list();
        return Result.ok(examPackages);
    }
}
